package com.zhiwen.design.singleton;

/**
 * @Auther: wuzhiwen
 * @Date: 2018/11/30 10:23
 * @Description: 懒汉式（延迟加载方式）
 */
public class Singleton02 {
    private Singleton02(){}

    private static Singleton02 singleton02 = null;

    public static Singleton02 getSingleton02(){
        if(singleton02 == null){
            return new Singleton02();
        }
        return singleton02;
    }
}
